summon item_display ^-2.75 ^2 ^ {item:{id:"smooth_quartz_stairs",components:{custom_data:{VoidShopPB:{selected:false,id:"left"}}}},Tags:["VoidShop.entity","VoidShop.PageButton",summonPB,GameCtrol,previous]}
summon item_display ^2.75 ^2 ^ {item:{id:"smooth_quartz_stairs",components:{custom_data:{VoidShopPB:{selected:false,id:"right"}}}},Tags:["VoidShop.entity","VoidShop.PageButton",summonPB,GameCtrol,next]}

summon interaction ^-2.75 ^1.75 ^ {Tags:["VoidShop.entity","VoidShop.PBInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^2.75 ^1.75 ^ {Tags:["VoidShop.entity","VoidShop.PBInteraction",GameCtrol],width:0.55,height:0.55,response:true}

summon text_display ^-2.85 ^2.4 ^0.2 {text:'{"text": "上一页"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.PageButtonText","VoidShop.PageButtonTextSummon",GameCtrol],background:0}
summon text_display ^2.85 ^2.4 ^0.2 {text:'{"text": "下一页"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.PageButtonText","VoidShop.PageButtonTextSummon",GameCtrol],background:0}


execute if entity @n[tag=blue,distance=..10,type=marker,tag=VoidShop] run data modify entity @n[tag=summonPB,type=item_display,distance=..10,nbt={item:{components:{"minecraft:custom_data":{VoidShopPB:{id:"left"}}}}}] transformation.right_rotation set value {axis:[0.0f,0.0f,1.0f],angle:2.4}
execute if entity @n[tag=blue,distance=..10,type=marker,tag=VoidShop] run data modify entity @n[tag=summonPB,type=item_display,distance=..10,nbt={item:{components:{"minecraft:custom_data":{VoidShopPB:{id:"right"}}}}}] transformation.right_rotation set value {axis:[0.0f,0.0f,1.0f],angle:-0.7}
execute if entity @n[tag=red,distance=..10,type=marker,tag=VoidShop] run data modify entity @n[tag=summonPB,type=item_display,distance=..10,nbt={item:{components:{"minecraft:custom_data":{VoidShopPB:{id:"left"}}}}}] transformation.right_rotation set value {axis:[0.0f,0.0f,1.0f],angle:-0.7}
execute if entity @n[tag=red,distance=..10,type=marker,tag=VoidShop] run data modify entity @n[tag=summonPB,type=item_display,distance=..10,nbt={item:{components:{"minecraft:custom_data":{VoidShopPB:{id:"right"}}}}}] transformation.right_rotation set value {axis:[0.0f,0.0f,1.0f],angle:2.4}

execute as @e[tag=VoidShop.PageButtonTextSummon,type=text_display,distance=..10] run data modify entity @s Rotation set from entity @n[tag=summon1,type=text_display,distance=..10] Rotation
execute as @e[tag=VoidShop.PageButtonTextSummon,type=text_display,distance=..10] run function vs:system/game_ctrol/void_shop/slot/text/toggle_display
execute as @e[tag=summonPB,distance=..10,type=item_display] run data modify entity @s transformation.scale set value [0.3f,0.3f,0.05f]

tag @e[tag=VoidShop.PageButtonTextSummon,type=text_display,distance=..10] remove VoidShop.PageButtonTextSummon
tag @e[tag=summonPB,type=item_display,distance=..10] remove summonPB